<?php
require_once('ForumClass.php');  
$Forum = new Forum();
if(!isset($_POST['submit']))
{
    header("../page/HOME_forum.php");    
}
else {
		
        $judul = $Forum->EscapeString($_POST['judul']);
		$isi_diskusi = $Forum->EscapeString($_POST['isi_diskusi']);
		$tanggal_diskusi = $Forum->GetDate();
		$nama = $_SESSION['username'];
		
    $Forum->AddDiskusi($judul,$isi_diskusi,$tanggal_diskusi,$nama);
}

$Forum->Disconnect();
 
?>
